package chapte12;
class Animal{
    //使用final关键字修饰shout()方法
    public  void shout(){
    }
}
//定义dog类继承animal类
class Dog extends Animal{
    //重写animal类的shout()方法
    public void shout(){
    }
}
public class Example008 {
    public static void main(String[] args) {
        Dog dog=new Dog();
    }
}
